package com.hand.sxt25527.ssmtrain.entity;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

/**
 * @author Mr~S
 * @date 2019/7/19 10:58
 */
public class Item {

    /**
     * 表id
     */
    private Long itemId;

    /**
     * '物料编码'
     */
    private String itemCode;

    /**
     * '物料单位'
     */
    private String itemUom;

    /**
     * '物料描述
     */
    private String itemDesc;

    /**
     * '生效起始时间'
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date startActiveDate;

    /**
     * '生效结束时间'
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
    private Date endActiveDate;

    /**
     * '启用标识
     */
    private Boolean enableFlag;

    private Long objectVersionNumber;


    public Long getItemId() {
        return itemId;
    }

    public void setItemId(Long itemId) {
        this.itemId = itemId;
    }

    public String getItemCode() {
        return itemCode;
    }

    public void setItemCode(String itemCode) {
        this.itemCode = itemCode;
    }

    public String getItemUom() {
        return itemUom;
    }

    public void setItemUom(String itemUom) {
        this.itemUom = itemUom;
    }

    public String getItemDesc() {
        return itemDesc;
    }

    public void setItemDesc(String itemDesc) {
        this.itemDesc = itemDesc;
    }

    public Date getStartActiveDate() {
        return startActiveDate;
    }

    public void setStartActiveDate(Date startActiveDate) {
        this.startActiveDate = startActiveDate;
    }

    public Date getEndActiveDate() {
        return endActiveDate;
    }

    public void setEndActiveDate(Date endActiveDate) {
        this.endActiveDate = endActiveDate;
    }

    public Boolean getEnableFlag() {
        return enableFlag;
    }

    public void setEnableFlag(Boolean enableFlag) {
        this.enableFlag = enableFlag;
    }

    public Long getObjectVersionNumber() {
        return objectVersionNumber;
    }

    public void setObjectVersionNumber(Long objectVersionNumber) {
        this.objectVersionNumber = objectVersionNumber;
    }

    @Override
    public String toString() {
        return "Item{" +
                "itemId=" + itemId +
                ", itemCode='" + itemCode + '\'' +
                ", itemUom='" + itemUom + '\'' +
                ", itemDesc='" + itemDesc + '\'' +
                ", startActiveDate=" + startActiveDate +
                ", endActiveDate=" + endActiveDate +
                ", enableFlag=" + enableFlag +
                ", objectVersionNumber=" + objectVersionNumber +
                '}';
    }
}
